#region Copyright RenGuiYou. All rights reserved.
//=====================================================
// PandoraFrameWork
// Author:      RenGuiyou
// Feedback: 	mailto:750539605@qq.com
//=====================================================
#endregion
using UnityEditor;
using UnityEngine;

namespace PandoraEditor.Window
{
    public class VersionConfigCategory : ConfigCategory
    {
        public override void OnInit()
        {
            name = "版本配置";
        }

        public override void OnDrawAction()
        {
            VersionSetting setting = UserSetting.VersionSetting;
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("版本", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.version_name = EditorGUILayout.TextField("当前SVN分支", setting.version_name);
            }
            GUILayout.EndVertical();
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("SVN", EditorStyles.boldLabel);
            GUILayout.BeginVertical("box");
            {
                setting.svn_url = EditorGUILayout.TextField("SVN地址", setting.svn_url);
            }
            GUILayout.EndVertical();
        }
    }
}
